<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		html, body, h1{
			margin: 0;
			padding: 0;
		}
		h1{font-size: 20px;}
		.header{
			background-color: orange;
			height: 80px;
		}
		.container{
			display: flex;
			height: 600px;
		}
		.left{
			background-color: lightgreen;
			flex: 2;
		}
		.main{
			background-color: lightpink;
			flex: 8;
		}
	</style>
</head>
<body>
<div id="app">
	<router-view></router-view>
	<div class="container">
		<router-view name="left"></router-view>
		<router-view name="main"></router-view>
	</div>
</div>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="node_modules/vue-router/dist/vue-router.js"></script>
<script>
	var header = {
		template : '<h1 class="header">header头部区域</h1>'
	}
	var leftBox = {
		template : '<h1 class="left">left侧边栏区域</h1>'
	}
	var mainBox = {
		template : '<h1 class="main">main主体区域</h1>'
	}
	var router = new VueRouter({
		routes : [
			{ 
				path : '/', 
				components : {
					'default' : header,
					'left' : leftBox,
					'main' : mainBox
				}
			}
		]
	})
	var vm = new Vue({
		el : '#app',
		data : {},
		router
	})
</script>
</body>
</html>